// content.js
const pageInfo = {
  url: location.href,
  title: document.title,
  metaDesc: document.querySelector('meta[name="description"]')?.content || ''
};
chrome.runtime.sendMessage({type: 'PAGE_INFO', data: pageInfo});
